<!--
 * @Author: shy_didi
 * @Date: 2020-06-11 11:38:39
 * @LastEditTime: 2020-06-12 11:37:16
 * @LastEditors: Please set LastEditors
 * @Description: 卵化平台
 * @FilePath: \发明人\fmr\src\pages\support\components\platform\platform.vue
--> 
<template>
  <div class="platform">
    <template>
      <div class="pf-content" v-for="item in datas" :key="item.id">
        <van-image :src="item.cover" />
        <div class="name">{{item.name}}</div>
        <div class="content">{{item.content}}</div>
        <van-button class="button">了解详情</van-button>
      </div>
    </template>
  </div>
</template>

<script>
import * as api from "@/request/api/apiList/partner.js";
export default {
  data() {
    return {
      datas: []
    };
  },
  methods: {
    async API_hatch() {
      return await api.hatch();
    }
  },
  async created() {
    let res = await this.API_hatch();
    //console.log(res);
    if(res.data.code === 200){
      this.datas = res.data.data.data
    }
    //console.log(this.datas)
  }
};
</script>

<style lang="scss" scoped>
@import "@/style/support.scss"
</style>